Hi David,
There isn't a PC shell command from within KFLOP User C Programs.
A workaround might be to create a (possibly hidden) User Button and
configure the Action to run a PC Program. You can then "Push" the User
Button from KFLOP using command:
#define PC_COMM_USER_BUTTON 13 // Persist+1 is which User Button to push
You can display a message box from KFLOP. See the command
// MessageBox Persist+1 = gather buffer offset (32-bit words) to message
string
// Persist+2 = Message Box Options (Icons and Buttons)
// Persist+3 = MessageBox Result returned
#define PC_COMM_MSG 15 // MessageBox
Persist+1=string,+2=Options,+3=result
and example: MessageBoxNoWait.c
HTH
Regards
TK
2016-07-26 10:58,
dbt3000files@... [DynoMotion] wrote:
> Sorry if this has been covered before.
> I am trying to execute a command line from the c code. Our machines
> running mach3 use vbscript, and you simply use the shell() command to
> execute an external command. Is there a way to do something similar
> with kmotion? I tried using the system() command, but it did not
> recognize it.
>
> Here are some more details of what we use for our mach3 based
> machines:
>
> shell ("netsh interface set interface""wireless network
> connection""enable") 'enables the wifi
>
> shell ("python c:\stopmessage.py") 'runs a python script to notify
> operator of machine status
>
> Thanks for any help anyone might have!
>
> David
>